package edu.wpi.first.wpilibj.templates;





import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.SpeedController;

public class RobotDrive 
{

    private SpeedController frontLeftDriveMotor;
    private SpeedController frontRightDriveMotor;
    private SpeedController rearRightDriveMotor;
    private SpeedController rearLeftDriveMotor;
    
    public RobotDrive(int frontLeft, int frontRight, int rearLeft, int rearRight)
    {
        this.frontLeftDriveMotor = new Jaguar(frontLeft);
        this.frontRightDriveMotor = new Jaguar(frontRight);
        this.rearRightDriveMotor = new Jaguar(rearRight);
        this.rearLeftDriveMotor = new Jaguar(rearLeft);
    }
    
    public void tankDrive(double leftJoystick, double rightJoystick)
    {
        frontLeftDriveMotor.set(leftJoystick);
        rearLeftDriveMotor.set(leftJoystick);
        frontRightDriveMotor.set(rightJoystick);
        rearRightDriveMotor.set(-rightJoystick);
    }
}
